home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / Kubuntu 8.10 / kubuntu-8.10-desktop-i386.iso / casper / filesystem.squashfs / var / lib / dpkg / info / kubuntu-default-settings.postinst < prev    next >
Text File  |  2008-10-16  |  1KB  |  42 lines

  1. #! /bin/sh
  2. set -e
  3.  
  4.  
  5.  
  6. case "$1" in
  7.   configure)
  8.     # clean the driver database for kdeprint
  9.     if [ -x /usr/sbin/foomatic-cleanupdrivers ]; then
  10.       foomatic-cleanupdrivers
  11.     fi
  12.  
  13.     # create links for .hidden files, don't bail out if s.th. goes wrong.
  14.     if [ -d /media ]; then
  15.         if [ ! -e /media/.hidden ]; then
  16.             ln -s /etc/kubuntu-default-settings/hidden-media /media/.hidden || \
  17.                 echo "Could not create symlink /media/.hidden, skipping."
  18.         fi
  19.         if [ ! -e /media/.directory ]; then
  20.             ln -s /etc/kubuntu-default-settings/directory-media /media/.directory || \
  21.                 echo "Could not create symlink /media/.directory, skipping."
  22.         fi
  23.     fi 
  24.     if [ -d /home ]; then
  25.         if [ ! -e /home/.directory ]; then
  26.             ln -s /etc/kubuntu-default-settings/directory-home /home/.directory || \
  27.                 echo "Could not create symlink /home/.directory, skipping."
  28.         fi
  29.     fi
  30.  
  31.     if [ -f /usr/share/kubuntu-default-settings/hal-policy-ntfs-config-write-policy.fdi ]; then
  32.         if [ -d /usr/share/hal/fdi/policy/10osvendor ]; then
  33.             ln -sf /usr/share/kubuntu-default-settings/hal-policy-ntfs-config-write-policy.fdi \
  34.                 /usr/share/hal/fdi/policy/10osvendor/20-ntfs-config-write-policy.fdi || \
  35.                 echo "Could not create symlink /usr/share/hal/fdi/policy/10osvendor/20-ntfs-config-write-policy.fdi, skipping."
  36.         fi
  37.     fi
  38.     ;;
  39. esac
  40.  
  41. exit 0
  42.